﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Tss.MagicWeb.Domain.Abstract;
using Tss.MagicWeb.Filters;

namespace Tss.MagicWeb.Controllers
{
    [AuthenticationFilter(false)]
    public class HomeController : Controller
    {
        public override string Name
        {
            get
            {
                return "Home";
            }
        }
        //
        // GET: /Home/

        public ActionResult Index()
        {
            var users = (IUserRepository) DependencyResolver.Current.GetService(typeof (IUserRepository));
            var total = users.Query();
            ViewData["Count"] = total.Count();
            return View();
        }

    }
}
